 /* 携程移动端案例body初始化 */
 body {
     max-width: 540px;
     min-width: 320px;
     margin: 0 auto;
     font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
     color: #000;
     background: #f2f2f2;
     overflow-x: hidden;
     -webkit-tap-highlight-color: transparent;
     /* height: 2000px; */
 }

 * {
     padding: 0;
     margin: 0;
 }

 a {
     text-decoration: none;
 }

 ul {
     list-style: none;
 }


 .search-index {
     position: fixed;
     /* 固定定位的边偏移是参考浏览器而定 */
     top: 0;
     left: 50%;
     /* 2d平移是参考自身而定 */
     transform: translateX(-50%);
     display: flex;
     width: 100%;
     height: 44px;
     max-width: 540px;
     min-width: 320px;
     background: color #f6f6f6;
     border-top: 1px solid #ccc;
     border-bottom: 1px solid #ccc;

 }

 div {
     box-sizing: border-box;
 }

 .search {
     position: relative;
     flex: 1;

     height: 26px;
     /* 因为多了2px的边框 其实高度应该是24px的 因为我用了c3的盒子模型所以高度看起来没变 */
     line-height: 24px;
     border: 1px solid #ccc;
     border-radius: 5px;
     box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
     margin: 7px 10px;
     font-size: 12px;
     color: #666;
     padding-left: 22px;


 }

 .search::before {
     /* 伪元素选择器必写属性content 切记 */
     content: "";
     position: absolute;
     top: 0px;
     left: -1px;
     width: 15px;
     height: 15px;
     background: url(../images/sprite.png)no-repeat -59px -278px;
     background-size: 104px auto;
     margin: 4px 5px;
 }

 .user {
     width: 44px;
     height: 44px;
     /* background-color: purple; */
     text-align: center;
     color: #2eaae0;
 }

 .user::before {
     /* 伪元素选择器必写属性 content 切记啊 */
     content: "";
     display: block;
     width: 23px;
     height: 23px;
     background: url(../images/sprite.png) no-repeat -59px -194px;
     background-size: 104px auto;
     margin: 4px auto -4px;
 }

 /* 焦点图 */
 .focus {
     overflow: hidden;
     position: relative;
     padding-top: 44px;
 }

 .focus ul {
     width: 500%;
     overflow: hidden;
     margin-left: -100%;    
 }

 .focus ul li {
     width: 20%;
     float: left;
 }
 .focus img {
     width: 100%;
 }

 .focus ol {
     position: absolute;
     right: 5px;
     bottom: 5px;
 }
 .focus ol li {
     display: inline-block;
     width: 5px;
     height: 5px;
     background-color: red;
     border-radius: 5px;
     list-style: none;
     transition: all .3s;
 }

 .focus ol .current {
     width: 15px;
 }


 /* 导航栏 */
 .local-nav {
     display: flex;
     height: 64px;
     background-color: #fff;
     border-radius: 8px;
     margin: 0 2px;

 }

 .local-nav li {
     flex: 1;
 }

 .local-nav a {
     display: flex;
     flex-direction: column;
     align-items: center;
     font-size: 12px;
     color: #222;
 }

 /* 属性选择器以local-nav-icon 开头的被选中 */
 .local-nav li [class^=local-nav-icon] {
     width: 32px;
     height: 32px;
     margin-top: 8px;
     background-color: pink;
     background: url(../images/localnav_bg.png) no-repeat 0 0;
     background-size: 32px auto;
 }

 /* 每个图标单独指定背景位置 */
 .local-nav li .local-nav-icon-icon2 {
     background-position: 0 -32px;
 }

 .local-nav li .local-nav-icon-icon3 {
     background-position: 0 -64px;
 }

 .local-nav li .local-nav-icon-icon4 {
     background-position: 0 -96px;
 }

 .local-nav li .local-nav-icon-icon5 {
     background-position: 0 -128px;
 }

 .nav-common {
     height: 88px;
     background-color: pink;
 }

 nav {
     /* 小圆角没有 就用溢出隐藏 */
     overflow: hidden;
     margin: 3px 2px;
     border-radius: 5px;

 }

 .nav-common:nth-child(2) {
     margin: 3px 0;

 }

 .nav-common {
     display: flex;
 }

 .nav-common:nth-child(1) {
     background: -webkit-linear-gradient(left, #FA5A55, #FA994D);
 }

 .nav-common:nth-child(2) {
     background: -webkit-linear-gradient(left, #4B90ED, #53BCED);
 }

 .nav-common:nth-child(3) {
     background: -webkit-linear-gradient(left, #34C2A9, #6CD559);
 }

 .nav-common-items {
     flex: 1;
 }

 .nav-common .nav-common-items:nth-child(1) {
     background: url(../images/hotel.png) no-repeat bottom center;
     background-size: 121px auto;
     line-height: 44px;
     text-align: center;

 }

 .nav-common .nav-common-items .border-bottom {
     border-bottom: 0;
 }

 .nav-common-items a {
     color: #fff;
     text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);

 }

 .nav-common-items:nth-child(n+2) {
     border-left: 1px solid #fff;
     border-right: 1px solid #fff;
     display: flex;
     flex-direction: column;
     text-align: center;
     line-height: 44px;
 }

 .nav-common-items:nth-child(3) {
     border-right: 0;
 }

 .nav-common-items a:nth-child(-n+2) {
     border-bottom: 1px solid #fff;
 }

 .nav-common-items a:nth-child(2) {
     flex: 1;
 }

 .subnav-entry {
     display: flex;
     border-radius: 5px;
     background-color: #fff;
     margin: 0 2px;
     /* 子元素是否换行 默认nowrap不换行，wrap换行。 */
     flex-wrap: wrap;
     padding: 15px 0;


 }

 .subnav-entry li {
     /* flex可以是百分比 相对于父级来说的 */
     flex: 20%;
     margin: 5px 0;
 }

 .subnav-entry a {
     /* 有flex 等同于转换了块元素可以给宽高 */
     display: flex;
     /* 设置为y轴为主轴去排列 */
     flex-direction: column;
     /* 侧轴居中 */
     align-items: center;
     font-size: 14px;
     color: #222;
 }

 .subnav-entry a .subnav-entry-icon {
     /* 背景图需要盒子 给宽高 */
     width: 22px;
     height: 18px;
     background: url(../images/subnav-bg.png) no-repeat 0 0;
     background-size: 22px auto;
     margin-top: 4px;
 }

 .sales-box {
     border-top: 1px solid #ccc;
     margin: 0 2px;
     background-color: #fff;
 }

 .sales-hd {
     position: relative;
     height: 60px;
     padding: 15px 0;
     border-bottom: 1px solid #ccc;

 }

 .sales-hd h2 {
     position: relative;
     font-size: 0;
 }

 .sales-hd h2::after {
     /* 你他码b是真不长记性 伪元素不写conten 没用！！！！！！！！！！！！！！！！ */
     content: "";
     position: absolute;
     top: 5px;
     left: 8px;
     width: 79px;
     height: 15px;
     line-height: 15px;
     background: url(../images/hot.png) no-repeat 0 -20px;
     background-size: 79px auto;
 }

 .sales-hd .more {
     position: absolute;
     right: 8px;
     top: 16px;
     background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
     border-radius: 15px;
     padding: 5px 25px 5px 12px;
     font-size: 14px;
     color: #fff;

 }

 .sales-hd .more::after {
     /* content: "";伪元素选择器必写属性 */
     content: "";
     position: absolute;
     top: 11px;
     right: 11px;
     width: 7px;
     height: 7px;
     /* background-color: pink; */
     border-top: 2px solid #fff;
     border-right: 2px solid #fff;
     transform: rotate(45deg);

 }

 .sales-bd .row {
     display: flex;
 }

 .sales-bd .row a {
     flex: 1;
     border-bottom: 1px solid #eee;
 }

 .sales-bd .row a img {
     width: 100%;
 }

 .row a:nth-child(1) {
     border-right: 1px solid #eee;

 }